/*******************************************************************
* ++
* Author        :	ThienTN
* Description   :	Utility.cpp in project HumanResource
* 
* Mod. History  :	28/07/2012 - ThienTN
*
* --
*******************************************************************/
#include "Utility.h"

/*
 * Menu of program
 */
void Menu()
{
	cout << "--------------HR Manage System------------------" <<endl;
	cout << "\t1.Input Employee" <<endl;
	cout << "\t2.Auto Input Employee" <<endl;
	cout << "\t3.Display list employee" <<endl;
	cout << "\t4.Search employee" <<endl;
	cout << "\t5.Sort list employee belong to graduated year" <<endl;
	cout << "\t6.Add 1 employee to tail" <<endl;
	cout << "\t7.Remove employees have graduated type less than medium" <<endl;
	cout << "\t0.Quit" <<endl;
}

/*
 * Get Graduated type
 */
std::string GetGradType( int n )
{
	switch (n)
	{
		case BAD:
			return "BAD";
			break;
		case WEAK:
			return "WEAK";
			break;
		case MEDIUM:
			return "MEDIUM";
			break;
		case PRETTY:
			return "PRETTY";
			break;
		case GOOD:
			return "GOOD";
			break;
		case EXCELLENT:
			return "EXCELLENT";
			break;
		default:
			break;
	}
}

/*
 * End action of every case input
 */
void End()
{
	printf("-----------DONE!-------------\n");		
	getch();
	system("cls");
}